package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rykj.energy.common.dto.TaskCameraRelationDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.List;

@Data
@TableName("sub_task_info")
@ApiModel("算法任务基本信息")
public class TaskInfo {

    @Id
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务算法编码" )
    private String  taskCode;

    @ApiModelProperty(value = "任务中文简称" )
    private String  taskName;

    @ApiModelProperty(value = "任务类型，video:视频分析，capture:图片分析" )
    private String  taskType;

    @ApiModelProperty(value = "任务基本参数信息" )
    private String businessContent;

    @ApiModelProperty(value = "任务常规执行计划" )
    private String execPlan;

    @ApiModelProperty(value = "任务优先级" )
    private int level;

    @ApiModelProperty(value = "任务创建时间" )
    private Date createTime;

    @ApiModelProperty(value = "任务最近一次修改时间" )
    private Date updateTime;

    @ApiModelProperty(value = "任务与摄像头关联信息")
    @TableField(exist=false)
    private List<TaskCameraRelationDto> taskCameras;
}
